import request from '@/config/axios'


export const shortPlayApi = {
  /**
   * 获取短剧树结构
   * @param params 
   * @returns 
   */
  getList: async params => await  request.get({ url: '/dy/playlet/tree', params}),
  
  /**
   * 新增短剧
   * @param params 
   * @returns 
   */
  add: async data => await request.post({ url: '/dy/playlet/create', data }),

  /**
   * 编辑短剧
   * @param params 
   * @returns 
   */
  edit: async data => await request.put({ url: '/dy/playlet/update', data }),

  /**
   * 删除短剧
   * @param params 
   * @returns 
   */
  delete: async params => await request.delete({ url: '/dy/playlet/delete', params }),
}